var vm = new Vue({
        el: '#app',
        data: {
            host: HOST,
            text: '',
            index: '',
            particulars:'',
            a:''
        },
        mounted: function () {
            this.shou_head();
        },
        methods: {
            shou_head: function () {
                var a = location.href;
                this.index = a.slice(a.indexOf("?") + 4)
                // 获取详情
                axios.get(this.host + '/spitslot/' + this.index, {
                    responseType: 'json'
                })
                    .then(response => {
                        this.text = response.data
                        // console.log(response)
                    })
                    .catch(error => {

                    })
                // 获取评论
                axios.get(this.host + '/comment_view/', {
                    params:{
                        id:this.index
                    }
                })
                    .then(response => {
                        this.particulars = response.data
                    })
                    .catch(error => {

                    })

            }
        }

    })
;